/* webview/css/layout.css */
body {
    display: flex;
    flex-direction: column;
}

/* 上半部分：显示区 */
#display-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: var(--gap-medium);
    position: relative;
}

.view-content { display: none; height: 100%; }
.view-content.active { display: block; }

/* 下半部分：控制区 */
#control-area {
    flex-shrink: 0;
    border-top: 1px solid var(--vscode-panel-border);
    background-color: var(--vscode-sideBar-background);
    padding: var(--gap-medium);
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
    position: relative; /* 为工具下拉菜单提供定位上下文 */
}

#command-bar {
    display: flex;
    justify-content: flex-start;
    gap: var(--gap-small);
    align-items: center;
}

#input-bar {
    position: relative;
    display: flex;
    width: 100%;
    align-items: stretch;
}

#user-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1;
    /* 为右下角的发送按钮留出空间 */
    padding-right: 48px !important; 
    min-height: 50px;
    max-height: 200px;
}

#send-button {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 10;
}